package com.dstz.bpm.api.model.def;

import java.io.Serializable;
import org.hibernate.validator.constraints.NotBlank;

public class BpmDefProperties implements Serializable {
   @NotBlank
   protected String subjectRule = "{发起人:startorName}在{发起时间:startDate}发起{流程标题:title}";
   protected String description = "";
   protected boolean allowExecutorEmpty = true;
   protected Integer supportMobile = 0;
   protected boolean logSubmitData = true;
   @NotBlank
   protected String status = "draft";

   public String getSubjectRule() {
      return this.subjectRule;
   }

   public void setSubjectRule(String subjectRule) {
      this.subjectRule = subjectRule;
   }

   public String getDescription() {
      return this.description == null ? "" : this.description;
   }

   public void setDescription(String description) {
      this.description = description;
   }

   public boolean isAllowExecutorEmpty() {
      return this.allowExecutorEmpty;
   }

   public void setAllowExecutorEmpty(boolean allowExecutorEmpty) {
      this.allowExecutorEmpty = allowExecutorEmpty;
   }

   public void setSupportMobile(Integer supportMobile) {
      this.supportMobile = supportMobile;
   }

   public Integer getSupportMobile() {
      return this.supportMobile;
   }

   public String getStatus() {
      return this.status;
   }

   public boolean isLogSubmitData() {
      return this.logSubmitData;
   }

   public void setLogSubmitData(boolean logSubmitData) {
      this.logSubmitData = logSubmitData;
   }

   public void setStatus(String status) {
      this.status = status;
   }
}
